# Contributor: Antoine Tenart <antoine.tenart@ack.tf>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=arp-scan
pkgver=1.10.0
pkgrel=2
pkgdesc="Address Resolution Protocol (ARP) packet scanner"
url="https://github.com/royhills/arp-scan"
arch="all"
license="GPL-3.0-or-later"
makedepends="libpcap-dev"
subpackages="$pkgname-doc"
source="https://github.com/royhills/arp-scan/releases/download/$pkgver/arp-scan-$pkgver.tar.gz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--mandir=/usr/share/man \
		--sysconfdir=/etc
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
	chmod u-s "$pkgdir"/usr/bin/arp-scan
}

sha512sums="
3f727c28d4c57b69f046fc6f7b67a8e02153aa2c05fe9e03639f0832d7101055a57bd2cadf122cc33f4a0668dd5d00086c94fd8d599a9a73016474ec88094332  arp-scan-1.10.0.tar.gz
"
